<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>查看订单详情</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
</head>
<body>
	<p>
		&nbsp;&nbsp;${sessionScope.adminTest.adminName}管理员欢迎你&nbsp;&nbsp;&nbsp;
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <b>企业后台系统，提供管理员新增，修改，删除，查找商品的功能</b>
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a
			href="${pageContext.request.contextPath}/customer/indexUI.action">返回首页</a>
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a
			href="${pageContext.request.contextPath}/admin/orderShow.action">查看订单</a>
	</p>
		
<p>
		<b>订单商品：</b>
	</p>
	<table width="98%" border=1 cellpadding="0" cellspacing="0"
		align="center">
		<tr bgcolor="#CCFFFF">
			<td><b>商品编号</b></td>
			<td><b>商品品牌</b></td>
			<td><b>商品名称</b></td>
			<td><b>商品类型</b></td>			
			<td width="30%"><b>商品描述</b></td>
			<td><b>商品价格</b></td>
			<td width="10%"><b>商品样图</b></td>
		</tr>
		<c:set var="useSum" value="0" />
		<c:forEach items="${sessionScope.orderGoodsCustoms }" var="orderGoodsCustoms"
			varStatus="status">
			<tr>
			<td>${orderGoodsCustoms.goodsId}</td>
				<td>${orderGoodsCustoms.goodsBrand}</td>
				<td>${orderGoodsCustoms.goodsName}</td>
				<td>${orderGoodsCustoms.goodsType}</td>
				<td>${orderGoodsCustoms.goodsDescription }</td>				
				<td>${orderGoodsCustoms.goodsPrice }</td>
				<td align="center"><a href="#"><img width="60%"
						src="${orderGoodsCustoms.uploadLocation }${orderGoodsCustoms.uploadName }" />
				</a></td>
				<c:set var="useSum" value="${useSum + orderGoodsCustoms.goodsPrice }"/>
				
		</c:forEach>
	</table>
	
	<p><b>订单商品总额：</b>${useSum}</p>
	
</body>
</html>